package com.zrrd.service.impl;

import com.zrrd.dao.TeaDao;
import com.zrrd.service.TeaService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author WanJl
 * @version 1.0
 * @title TeaServiceImpl
 * @description
 * @create 2024/1/25 11:43
 */
public class TeaServiceImpl implements TeaService {
    private TeaDao teaDao;
    @Override
    public void print() {
        System.out.println("输出了 TeaService.....实际调用的是实现类对象TeaServiceImpl...");
        teaDao.query();
    }
    public void setTeaDao(TeaDao teaDao) {
        this.teaDao = teaDao;
    }
}
